import request from '@/utils/request'

export function tree() {
  return request({
    url: '/pp/sys/menu/tree',
    method: 'get'
  })
}

export function add(data) {
  return request({
    url: '/pp/sys/menu/add',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: '/pp/sys/menu/delete',
    method: 'post',
    params: { ids }
  })
}

export function edite(data) {
  return request({
    url: '/pp/sys/menu/edite',
    method: 'post',
    data
  })
}
